﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="GBook1.ascx.cs" Inherits="Control_GBook1" %>
<div style="width: 95%; text-align: left">
    <div style="text-align:center;">
        <asp:Label ID="LB_GBook" runat="server" Font-Bold="True" Font-Size="Small" ForeColor="Red"></asp:Label>
    </div>
    <div>
        <asp:HyperLink ID="HL_AddGBook" runat="server" NavigateUrl="~/AddGBook.aspx">我要留言</asp:HyperLink>
    </div>
    <asp:DataList ID="DL_GBookList" runat="server" Width="100%">
        <ItemTemplate>
            <table border="0" cellpadding="2" cellspacing="0" style="text-align: center;" width="96%">
                <tr align="center" bgcolor="#36bef8">
                    <td style="color: White;" width="30%">
                        <strong>留言主题</strong></td>
                    <td style="color: White;" width="20%">
                        <strong>留言人姓名</strong></td>
                    <td style="color: White;" width="30%">
                        <strong>Email</strong></td>
                    <td style="color: White;" width="20%">
                        <strong>时间</strong></td>
                </tr>
                <tr>
                    <td colspan="4" height="2">
                    </td>
                </tr>
                <tr>
                    <td style="border-top: dashed 1px #cccccc; border-bottom: dashed 1px #cccccc;">
                        <%# Eval("GBook_Title")%>
                    </td>
                    <td style="border-top: dashed 1px #cccccc; border-bottom: dashed 1px #cccccc;">
                        <%# Eval("GBook_Name")%>
                    </td>
                    <td style="border-top: dashed 1px #cccccc; border-bottom: dashed 1px #cccccc;">
                        <a href='mailto:<%# Eval("GBook_Email") %>'>
                            <%# Eval("GBook_Email")%>
                        </a>
                    </td>
                    <td style="border-top: dashed 1px #cccccc; border-bottom: dashed 1px #cccccc;">
                        <%# Eval("GBook_DateTime")%>
                    </td>
                </tr>
                <tr>
                    <td align="left">
                        <strong>留言内容</strong></td>
                    <td>
                        &nbsp;</td>
                    <td>
                        &nbsp;</td>
                    <td>
                        <a href="AddGBook.aspx">&gt;&gt;我要留言</a></td>
                </tr>
                <tr>
                    <td colspan="4">
                        <table border="0" cellpadding="2" cellspacing="0" width="100%">
                            <tr>
                                <td align="left">
                                    <%# Eval("GBook_Content")%>
                                </td>
                            </tr>
                        </table>
                    </td>
                </tr>
                <tr style="text-align: left;">
                    <td>
                        <strong>管理员回复：</strong></td>
                    <td colspan="3">
                    </td>
                </tr>
                <tr style="text-align: left;">
                    <td colspan="4">
                        <%# Eval("GBook_Reply")%>
                    </td>
                </tr>
                <tr>
                    <td bgcolor="#36bef8" colspan="4" height="1">
                    </td>
                </tr>
            </table>
        </ItemTemplate>
    </asp:DataList>
    <br />
    <table border="0" cellpadding="1" cellspacing="1" width="100%">
        <tr>
            <td style="width: 60%; text-align: center">
                <asp:LinkButton ID="LBtn_FirstPage" runat="server">首页</asp:LinkButton>
                <asp:LinkButton ID="LBtn_PrePage" runat="server">上一页</asp:LinkButton>
                <asp:LinkButton ID="LBtn_NextPage" runat="server">下一页</asp:LinkButton>
                <asp:LinkButton ID="LBtn_LastPage" runat="server">末页</asp:LinkButton></td>
            <td style="width: 20%; text-align: center">
                第<asp:Label ID="LB_PageIndex" runat="server">1</asp:Label>页&nbsp;</td>
            <td style="width: 20%; text-align: center">
                共<asp:Label ID="LB_PageCount" runat="server"></asp:Label>页&nbsp;</td>
        </tr>
    </table>
</div>
